<?php
if(isset($_GET['id']))
{
	$id = intval($_GET['id']);
	require_once("classes/class_upload.php");	
	$ponteiro = new upload();
	$dbRow = $ponteiro->select($id);
}



?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Enviar Fotos</title>
<link rel="stylesheet" href="css/style.css" type="text/css" media="all"/>

</head>

<body>
     <img src="uploads/<?php echo $dbRow['foto'] ?>" />
     <p>Copie o link abaixo e adicone ao texto: </p>
     <p>http://<?php echo $_SERVER['SERVER_NAME']. substr($_SERVER['PHP_SELF'],0,-10) ?>uploads/<?php echo $dbRow['foto'] ?></p>
     <form action="cotar-foto.php" method="post" name="formExibir" id="formExibir" enctype="multipart/form-data">
         <div class="class-form-2">
            <h1>Cotar Foto</h1>
            <ul>
                <li>
                    <p>Largura da foto<span>em pixel</span></p>
                    <input type="text" name="cotar_width" id="cotar_width" value="" />
                </li>
                <li>
                    <p>Altura da foto<span>em pixel</span></p>
                    <input type="text" name="cotar_height" id="cotar_height" value="" />
                    <input type="hidden" name="cotar_img" id="cotar_img" value="uploads/<?php echo $dbRow['foto'] ?>" />
                    <input type="hidden" name="cotar_voltar" id="cotar_voltar" value="<?php echo "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] ?>">
                </li>
             </ul>
          </div>
          <div class="holder-btns">
            <input type="image" src="imgs/btn-enviar.jpg" alt="Enviar" />
          </div>
      </form>
     
</body>
</html>